
<?php
/**
 * Created by PhpStorm.
 * User: Admin
 * Date: 2020/1/6
 * Time: 18:09
 */
use think\facade\Route;

Route::rule("test","demo/index/hello","GET");

Route::rule("detail","detail/index","GET")->middleware(\app\demo\middleware\Detail::class);